package com.yerbamateprimer.service;

import java.util.List;

import com.yerbamateprimer.model.Group;
import com.yerbamateprimer.model.User;

/**
 * This interface defines a service
 * useful to manage (CRUD) the
 * yerba mate users.
 * 
 * @author Matias Liwski
 * @version 1.0
 */
public interface UserService {
	/**
	 * @param userId The id of the user to search for.
	 * @return The User find for the provided userId.
	 */
	User findUserWithId(Long userId);
	
	/**
	 * @param user The user to search inside groups.
	 * @return The list of groups where the user belongs.
	 */
	List<Group> findGroupsForUser(User user);
}